package xyz.pro5books.controller;

import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.web.bind.annotation.*;
import xyz.pro5books.service.UserOperService;

@RestController
@CrossOrigin
@RequestMapping("/userOper")
public class UserOperController {
    @Autowired
    private UserOperService userOperService;

    @PutMapping("/download/{userId}/{bookId}")
    public void download(@PathVariable Integer userId, @PathVariable Integer bookId){
        userOperService.writeDownloadOperInfo(userId, bookId);
    }
}
